<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: WHO Monica Data</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for monica"><tr><td>monica</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>WHO Monica Data</h2>

<h3>Description</h3>

<p>The <code>monica</code> data frame has 6357 rows and 12 columns. Note
that <code>mifem</code> is the female subset of this data frame.
</p>


<h3>Usage</h3>

<pre>monica</pre>


<h3>Format</h3>

<p>This data frame contains the following columns:
</p>

<dl>
<dt>outcome</dt><dd><p>mortality outcome, a factor with levels <code>live</code>, 
<code>dead</code></p>
</dd> 
<dt>age</dt><dd><p>age at onset</p>
</dd>
<dt>sex</dt><dd><p>m = male, f = female</p>
</dd>
<dt>hosp</dt><dd><p>y = hospitalized, n = not hospitalized</p>
</dd>
<dt>yronset</dt><dd><p>year of onset</p>
</dd>
<dt>premi</dt><dd><p>previous myocardial infarction event, a 
factor with levels <code>y</code>, <code>n</code>, <code>nk</code> not known </p>
</dd>
<dt>smstat</dt><dd><p>smoking status, a factor with levels <code>c</code> 
current, <code>x</code> ex-smoker, <code>n</code> non-smoker, <code>nk</code> not known</p>
</dd>
<dt>diabetes</dt><dd><p>a factor with levels <code>y</code>, <code>n</code>, <code>nk</code> not 
known</p>
</dd>
<dt>highbp</dt><dd><p>high blood pressure, a factor with levels
<code>y</code>, <code>n</code>, <code>nk</code> not known </p>
</dd>
<dt>hichol</dt><dd><p>high cholesterol, a factor with levels
<code>y</code>, <code>n</code> <code>nk</code> not known</p>
</dd>
<dt>angina</dt><dd><p>a factor with levels <code>y</code>,
<code>n</code>, <code>nk</code> not known</p>
</dd>
<dt>stroke</dt><dd><p>a factor with levels
<code>y</code>, <code>n</code>, <code>nk</code> not known</p>
</dd>
</dl>



<h3>Source</h3>

<p>Newcastle (Australia) centre of the Monica
project; see the web site http://www.ktl.fi/monica
</p>


<h3>Examples</h3>

<pre>
print("CART - Example 10.7")
summary(monica)
pause()

require(rpart)
monica.rpart &lt;- rpart(outcome ~ ., data = monica, cp = 0.0025)
plotcp(monica.rpart)
printcp(monica.rpart)
pause()

monicab.rpart &lt;- prune(monica.rpart, cp=0.006)
print(monicab.rpart)
</pre>


</body></html>
